% TEST_ID: LANG-EXPAND-0019
% CATEGORY: language/array-ops/slice
% 测试 char/string 数组的索引行为

function test_char_string_slice
    B = ['abc' ; 'edf'];
    assert(isequal(B(1:3), ['aeb']))
    
    B = string(B);
    assert(isequal(B(2), 'edf'));
end